#region Copyright ?2010 Pawel Idzikowski [idzikowski@sharpserializer.com]

//  ***********************************************************************
//  Project: sharpSerializer
//  Web: http://www.sharpserializer.com
//
//  This software is provided 'as-is', without any express or implied warranty.
//  In no event will the author(s) be held liable for any damages arising from
//  the use of this software.
//
//  Permission is granted to anyone to use this software for any purpose,
//  including commercial applications, and to alter it and redistribute it
//  freely, subject to the following restrictions:
//
//      1. The origin of this software must not be misrepresented; you must not
//        claim that you wrote the original software. If you use this software
//        in a product, an acknowledgment in the product documentation would be
//        appreciated but is not required.
//
//      2. Altered source versions must be plainly marked as such, and must not
//        be misrepresented as being the original software.
//
//      3. This notice may not be removed or altered from any source distribution.
//
//  ***********************************************************************

#endregion

using System;

#if Smartphone
#elif SILVERLIGHT
#else

using System.Runtime.Serialization;

#endif

namespace CuteAnt.Serialization.Core
{
	/// <summary>Occures if the simple value can not be restored from its text representation</summary>
#if Smartphone
#elif SILVERLIGHT
#else

	[Serializable]
#endif

	public class SimpleValueParsingException : HmExceptionBase
	{
		///<summary>
		///</summary>
		public SimpleValueParsingException()
		{
		}

		///<summary>
		///</summary>
		///<param name = "message"></param>
		public SimpleValueParsingException(String message)
			: base(message)
		{
		}

		///<summary>
		///</summary>
		///<param name = "message"></param>
		///<param name = "innerException"></param>
		public SimpleValueParsingException(String message, Exception innerException)
			: base(message, innerException)
		{
		}

#if Smartphone
#elif SILVERLIGHT
#else

		/// <summary>
		/// </summary>
		/// <param name = "info"></param>
		/// <param name = "context"></param>
		protected SimpleValueParsingException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

#endif
	}
}